1  	//Helper method, which calls the service to insert the partbooking in the database,
2  	//also updates the partbooking on the booking
3  	private void InsertPartBookingInDatabase()
4  	{
5 		//Ensure that the partbooking is updated with the booking id, failure to do so
6 		//will result in an exception due to foreign key constriction on partbooking.  
7  		booking.PbList[CurrentPartId()].BookingId = booking.BookingId;
8  
9 		bookingService.InsertPartBooking(booking.PbList[CurrentPartId()]);
10	}